package com.yq.leetcodeOld.tree;

/**
 * @ClassName TreeNode
 * @Description 构造树节点，当前值，左右子节点，俩构造器
 * @Author yaoqiang
 * @Date 2022/2/14 10:05
 * @Version 1.0
 */
public class TreeNode {
    int val;
    TreeNode left;
    TreeNode right;

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
